import 'package:flutter/material.dart';
import 'package:card_swiper/card_swiper.dart';
import 'package:honeypotflutter/publicBussine/bussine_image.dart';

class HomeBanner extends StatelessWidget {
  const HomeBanner({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: 180,
      child: ClipRRect(
        borderRadius: BorderRadius.circular(16),
        child: Swiper(
            itemBuilder: (BuildContext context, int index) {
              return Image.asset(MGImage.image("home_banner", type: ImagePathType.home));
            },
            autoplay: true,
            itemCount: 3,
            pagination: SwiperPagination()),
      ),
    );
  }
}
